package chapter5;
import java.util.Scanner;
/****************************************************************
 * Author：icynlau
 * Description: 数学方面 组合
 * Date:2021/4/4
 * ***************************************************************
 */
public class exc5_43 {
	public static void main(String[] args) {
		Scanner input=new Scanner(System.in);
		int n=0;
		for(int i=1;i<=6;i++) {
			for(int j=i+1;j<=7;j++) {
				
					System.out.print(i+"  "+j+"\n");
					n++;
				
			}
		}
		System.out.print("The total number of all combinations is "+n);
		
	}

}
